<?php

namespace app\admin\model;

use think\Model;

class UpmsUser extends Model
{
    public function upmsUserRoles()
    {
        return $this->belongsToMany('UpmsRole', 'UpmsUserRole', 'role_id', 'user_id');
    }

    public function upmsUserPermissions()
    {
        return $this->belongsToMany('UpmsPermission', 'UpmsUserPermission', 'permission_id', 'user_id');
    }
}
